package com.example.splash;

import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager2.widget.ViewPager2;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

public class MainActivity extends AppCompatActivity implements Lunb.Oikl{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        LinearLayout kduh = findViewById(R.id.add);
        kduh.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(MainActivity.this,MainActivity2.class);
                startActivity(intent);
            }
        });

        int[] sddfr = {R.drawable.tu1,R.drawable.tu2,R.drawable.tu3};
        ViewPager2 jiio = findViewById(R.id.xxxu);
        Lunb cvvvbg = new Lunb(this,sddfr);
        jiio.setAdapter(cvvvbg);

    }

    @Override
    public void OnItemClick(int position) {
        Intent intent = new Intent();
        intent.setClass(MainActivity.this,MainActivity2.class);
        startActivity(intent);
    }
}